package com.csf.entity;


import com.csf.annotation.Component;

/**
 *
 * Date: 2018/8/28
 * Time: 16:38
 *
 * @author chenshf
 */
@Component
public class User {

    private String name;

    private String password;

    public User() {
        System.out.println("执行无参的构造函数==========");
    }

    public User(String name, String password) {
        this.name = name;
        this.password = password;
        System.out.println("执行有参的构造函数==========");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
